﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MessageCallAspect.Inspector.Request;
using System.Diagnostics;

namespace MessageCallAspect.Inspector.Response
{

    [DebuggerStepThrough]
    public class MessageResponse : IMessageResponse
    {
        #region fields

        private readonly MessageRequest m_Request;

        #endregion

        #region ctor

        public MessageResponse(MessageRequest request)
        {
            m_Request = request;
        }

        #endregion

        public object ReturnValue { get; set; }
        public object[] OutArgs { get; set; }
        public Exception Exception { get; set; }
        public TimeSpan Duration { get; set; }
        public MessageRequest Request
        {
            get
            {
                return m_Request;
            }
        }
    }
}
